package com.doge.service.wx.home;

import com.doge.bean.vo.wxhome.HomeAboutVO;
import com.doge.mapper.SystemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxHomeAboutServiceImpl implements WxHomeAboutService{
    @Autowired
    SystemMapper systemMapper;
    @Override
    public HomeAboutVO about( ) {
        HomeAboutVO aboutVO = new HomeAboutVO();
        String name = systemMapper.getMarketSystemByKeyName("market_mall_name");
        String address = systemMapper.getMarketSystemByKeyName("market_mall_address");
        String longitude = systemMapper.getMarketSystemByKeyName("market_mall_longitude");
        String latitude = systemMapper.getMarketSystemByKeyName("market_mall_latitude");
        String phone = systemMapper.getMarketSystemByKeyName("market_mall_phone");
        String qq = systemMapper.getMarketSystemByKeyName("market_mall_qq");
        aboutVO.setName(name);
        aboutVO.setAddress(address);
        aboutVO.setPhone(phone);
        aboutVO.setQq(qq);
        aboutVO.setLatitude(latitude);
        aboutVO.setLongitude(longitude);
        return aboutVO;
    }
}